<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container{width: 1024px; margin: 0 auto;}
        #nav{
            list-style: none;
            height: 30px;
            margin: 0;
            padding: 0;
            border-bottom: 4px solid #2788da;
        }
        #nav li{
            float: left;
        }
        #nav li a{
            display: block;
            color: #000;
            background-color: #ececec;
            width: 168px;
            margin-left: 2px;
            text-align: center;
            text-decoration: none;
            font-weight: bold;
            height: 26px;
            padding-top: 4px;
        }
    </style>
</head>
<body>
<div class="container">
    <ul id="nav">
        <li><a href="#">首 页</a></li>
        <li><a href="#">文 章</a></li>
        <li><a href="#">参 考</a></li>
        <li><a href="#">BLOG</a></li>
        <li><a href="#">论 坛</a></li>
        <li><a href="#">联 系</a></li>
    </ul>
</div>
</body>
</html>